package com.csdig.cms.dao;

import java.util.List;

import com.csdig.cms.model.ModelItem;
import com.csdig.db.model.Pagination;

public interface ModelItemDAO {

	public void add(ModelItem vo) throws Exception;

	public void update(ModelItem vo) throws Exception;

	public void delete(java.lang.Integer modelItemId) throws Exception;

	public ModelItem findById(java.lang.Integer modelItemId) throws Exception;

	public List<ModelItem> listAll() throws Exception;

	public Pagination<ModelItem> findByCondition(ModelItem vo, int pageNo, int pageSize) throws Exception;

	public List<ModelItem> findByCondition(ModelItem bean) throws Exception;

	public List<ModelItem> findbyPath(String path) throws Exception;
	
	public ModelItem findUniqByCondi(String path,String field)throws Exception;

	
	//
	public List<ModelItem> findByCondition(String[] fieldNames,Object[] values)throws Exception;
	
	public List<ModelItem> findCanAddItem(String modelPath,Integer channelId)throws Exception;
}
